package demo2;

/**
 * @Author liangzai
 * @Description:
 */
public class Student extends Person{
    public String name ;
    public String id;
    public String gender;

    public Student(){
        super();
    }

    public Student (String name, int age, String gender,String id) {
        this(name,age, gender);
        this.id = id;
    }

    public Student (String name ,int age ,String gender){
        this.name = name;
        this.age = age;
        this.gender = gender;
    }


    public String getInof(){
        return "Student{" +
                "姓名='" + name + '\'' +
                ", 年龄='" + age + '\'' +
                ", 性别='" + gender + '\'' +
                ", 学号='" + id    +'\''+
                '}';
    }
}
